import 'package:flutterproject/mvvm/base/base_controller.dart';
import 'package:package_info_plus/package_info_plus.dart';

class SettingController extends BaseController {
  String version = "";

  @override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
    getVersion();
  }

  Future getVersion() async {
    PackageInfo packageInfo = await PackageInfo.fromPlatform();
    version = packageInfo.version;
    update();
  }
}
